using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace GNetDesktop
{
    public partial class frmSearchBar : MDIForm 
    {
        public frmSearchBar()
        {
            InitializeComponent();
        }

        private void frmSearchBar_Load(object sender, EventArgs e)
        {

        }

        [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "SendMessageA")]
        private static extern int SendMessage(IntPtr hwnd, int wMsg, IntPtr wParam, IntPtr lParam);

        private const int WM_NCLBUTTONDOWN = 0XA1;
        private const int HTCAPTION = 2;

        private void frmLogin_MouseDown(object sender, MouseEventArgs e)
        {
            this.Capture = false;
            SendMessage(this.Handle, WM_NCLBUTTONDOWN, (IntPtr)HTCAPTION, (IntPtr)0);
        }
    }
}